#include "circle.h"

Circle::Circle()
{
    this->center = Point(0,0);
    this->radius = 0;
}

Circle::Circle (const Point &inputCenter, const int &radius)
{
    this->center = inputCenter;
    this->radius = radius;
}

Circle::Circle(int &x, int &y, const int &radius)
{
    this->center.setX(x);
    this->center.setY(y);
    this->radius = radius;
}

void Circle::moveShape(const int &x, const int &y)
{
    this->center += Point(x, y);
}

void Circle::extensionShape(const double &scale)
{
    this->radius *= (int)scale;
}

int Circle::getRadius()
{
    return this->radius;
}

Point Circle::getCenter()
{
    return this->center;
}

std::string Circle::saveData()
{
    std::string res = "c " ;
    res += std::to_string(this->center.getX());
    res += " ";
    res += std::to_string(this->center.getY());
    res += " ";
    res += std::to_string(this->radius);
    res += '\n';
    return res;
}

Circle::~Circle()
{

}

